package com.lz.kunkun.messageservice.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeUtil {
    public static String dateToString(Date date) {
    	String pattern="yyyy-MM-dd HH:mm:ss";
    	SimpleDateFormat sdf=new SimpleDateFormat(pattern);
    	return sdf.format(date);
    }
}
